//
//  ParkingHomeCell.m
//  HuLaQuan
//
//  Created by hok on 3/15/16.
//  Copyright © 2016 yuwubao. All rights reserved.
//

#import "ParkingHomeCell.h"

@implementation ParkingHomeCell

+(UINib *)nib
{
    return [UINib nibWithNibName:@"ParkingHomeCell" bundle:nil];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super initWithCoder:aDecoder];
    if (self) {
        // Initialization code
        
        
    }
    return self;
}
- (void)drawRect:(CGRect)rect {
    // Drawing code
    UIBezierPath *path = [UIBezierPath bezierPath];
    [path moveToPoint:CGPointMake(0, self.bounds.size.height- 1.)];
    [path addLineToPoint:CGPointMake(self.bounds.size.width , self.bounds.size.height - 1. )];
    [UIColorFromRGBA(0xdadada,1.0) setStroke];
    [path stroke];
    
    if (((self.indexPath.row + 1) % 3) !=0) {
        UIBezierPath *p = [UIBezierPath bezierPath];
        [p moveToPoint:CGPointMake(self.bounds.size.width , 2.)];
        [p addLineToPoint:CGPointMake(self.bounds.size.width , self.bounds.size.height - 2. )];
        [p stroke];
    }
}
- (void)awakeFromNib {
    // Initialization code
    self.backgroundColor = [UIColor whiteColor];
    // self.itemTitle.font = [UIFont fontWithName:@"PingFangSC-light" size:ScaleForScreen(13)];
    
    
    
    
}
- (void)setItemImageName:(NSString *)itemImageName
{
    _itemImageName = itemImageName;
    
    self.itemImageView.image = [UIImage imageNamed:_itemImageName];
    
}


@end
